package com.yh.patterns.factory.abstract_factory.pcAndMac;

/**
 * @Auther:云尚学Java
 */
public class Client {
    public static void main(String[] args) {
        PcFactory factory=new PcFactory();
        CPU cpu = factory.createCPU();
        RAM ram = factory.createRAM();
        cpu.show1();
        ram.show2();
        System.out.println("==================");
        MacFactory factory1=new MacFactory();
        CPU cpu1 = factory1.createCPU();
        RAM ram1 = factory1.createRAM();
        cpu1.show1();
        ram1.show2();
    }
}
